package com.example.CarManagement.sys.service;

import com.example.CarManagement.common.Result;
import com.example.CarManagement.enumPojo.OrderStatus;
import com.example.CarManagement.sys.dto.OrderDto;
import com.example.CarManagement.sys.entity.Orders;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 订单表，记录派车信息和实际用车情况 服务类
 * </p>
 *
 * @author 徐佳彪
 * @since 2025-07-23
 */
public interface IOrdersService extends IService<Orders> {

    Result<?> getPageList(Integer pageNo, Integer pageSize, String applicationId, String orderNumber);

    Result<?> orderInfo(String id);

    Result<?> dispatchTask(String token, OrderStatus orderStatus);

    // 更具id查询
    Result<?> getInfoById(String id, String token);

    Result<?> startTask(String id);

    Result<?> completeTask(OrderDto orderDto);
}
